/**
 * @filename:SysRole 2022年1月27日
 * @project Wonder wallet Framework  V1.0
 * Copyright(c) 2020 LuZhongren Co. Ltd. 
 * All right reserved. 
 */
package com.wonder.admin.domain;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.springframework.format.annotation.DateTimeFormat;
import java.io.Serializable;


/**   
 * @Description:TODO(分组权限管理实体类)
 * 
 * @version: V1.0
 * @author: LuZhongren
 * 
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("sys_role")
@ApiModel(value="role对象", description="分组权限管理表")
public class SysRole extends Model<SysRole> {

	private static final long serialVersionUID = 1643435136334L;
	
	@TableId(value ="role_id", type = IdType.AUTO)
	@ApiModelProperty(name = "role_id" , value = "编号")
	private Long role_id;
    
 	@TableField(value = "name")
	@ApiModelProperty(name = "name" , value = "分组名称")
	private String name;
    
 	@TableField(value = "status")
	@ApiModelProperty(name = "status" , value = "状态")
	private Integer status;
    
 	@TableField(value = "pid")
	@ApiModelProperty(name = "pid" , value = "所属父类")
	private Integer pid;
    
 	@TableField(value = "description")
	@ApiModelProperty(name = "description" , value = "描述")
	private String description;
    
 	@TableField(value = "access")
	@ApiModelProperty(name = "access_table" , value = "权限节点")
	private String access_table;
 	
 	@TableField(exist = false)
	@ApiModelProperty(name = "access" , value = "权限节点数组")
	private String[] access;
 
	@Override
    public Serializable pkVal() {
        return this.role_id;
    }
}
